package com.itdragon.cloud.eurekaServer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.itdragon.cloud.eurekaServer.service.HelloWorldService;

@RestController
public class HelloWorldController {

	@Autowired
	private HelloWorldService helloWorldService;
	
	@GetMapping("/sayHello")
	public String sayHello(@RequestParam("world") String world) {
		return helloWorldService.sayHello(world);
	}
	
}
